﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Framework.Datastructures
{
    public class Node<T>
    {
        public T Value { get; set; }
        public Node<T> Next { get; set; }

        public Node()
        {            
            Next = null;
        }

        public Node(T data)
        {
            Value = data;
            Next = null;
        }
                
        public override string ToString()
        {
            return Value.ToString();
        }
    }
}
